package com.hudilao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hudilao.entity.DiningTable;
import com.hudilao.mapper.DiningTableMapper;
import com.hudilao.service.DiningTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DiningTableServiceImpl extends ServiceImpl<DiningTableMapper, DiningTable> implements DiningTableService {

    @Autowired
    private DiningTableMapper diningTableMapper;

    /**
     * 用户下单支付后修改餐桌状态
     * @param customerId 用户id
     */
    @Override
    public void updateStatusAfterPayment(long customerId) {
        diningTableMapper.updateStatusAfterPayment(customerId);
    }
}
